package com.yanggu.scala.chapater11.map

object HighOrderFunDemo02 {

  def main(args: Array[String]): Unit = {
    test2(sayOk)
  }

  /**
   * 这里是无参和无返值的函数
   *
   * @param f
   */
  def test2(f: () => Unit) = f()

  def sayOk() = println("SayOk.......")
}
